package system.base;

import framework.core.*;
import system.SelectManager;
import system.data.*;

/*
	Author    :Arrow
	CreateTime:2009-05-11 16:57:27
*/
public class BillMoneyInput extends BillMoneyInputBase 
{

//----system generated start----// 	
public BillMoneyInput() 
{
	
}

private static void delete(DBConnection con,String id) throws Exception
{
	Conditions conditions = new Conditions();

	conditions.add(ID,id);
	
	delete(con,TABLE_NAME,conditions);
}
public static BillMoneyInput fetch()
{
	return new BillMoneyInput();
}
public static BillMoneyInput copy(BillMoneyInput srcObj)
{
	BillMoneyInput obj = fetch();
	obj.copyBase(srcObj);
	return obj;
}
public static BillMoneyInput fetch(DBConnection con,String id) throws Exception
{
	Conditions conditions = new Conditions();

	conditions.add(ID,id);
	
	return fetch(con,conditions);
}
public static BillMoneyInput fetch(DBConnection con,Conditions conditions) throws Exception
{
	DBResult result = null;
	try
	{
		result = DBEngine.doSelect(con,"select * from " + TABLE_NAME,conditions);
		java.sql.ResultSet rs = result.getRs();
		BillMoneyInput obj = null;
		if(rs.next())
		{
			obj = fetch(rs);
		}
		return obj;
	}
	finally
	{
		if(result!=null) result.clear() ;
	}
}
public static BillMoneyInput fetch(java.sql.ResultSet rs) throws Exception
{
	BillMoneyInput obj = new BillMoneyInput();
	obj.initObject(rs);
	return obj;
}
protected void getUnique(DBConnection con) throws Exception
{
		setId(DBEngine.getId(con));
}
//----system generated end----//



//----add by Arrow start----//


//----add by Arrow end----//

}

